package www.woniuxy.com.class112.entity;

import java.util.Date;

public class Messages {
    private Long messageId;

    private Long senderId;

    private Long receiverId;

    private Date timestamp;

    private String content;

    private Long readState;

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    public Date getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getReadState() {
        return readState;
    }

    public void setReadState(Long readState) {
        this.readState = readState;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", messageId=").append(messageId);
        sb.append(", senderId=").append(senderId);
        sb.append(", receiverId=").append(receiverId);
        sb.append(", timestamp=").append(timestamp);
        sb.append(", content=").append(content);
        sb.append(", readState=").append(readState);
        sb.append("]");
        return sb.toString();
    }
}